import {ref,onMounted } from 'vue'
import router from '@/router'
import {getbanner} from '@/api/api'
export function useTitle(){
const skip = () => router.replace('login')
let Lists = ref([])
onMounted(async ()=>{
    let {data} = await getbanner()
     Lists.value = data
})


    return{
Lists,
skip
    }
}